package com.painpointcloud.business.service.impl;
import com.painpointcloud.business.bean.UserModule;
import com.painpointcloud.business.mapper.UserModuleMapper;
import com.painpointcloud.business.service.UserModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by JackLeon on 2017/8/21 20:40
 * description:
 **/
@Service
public class UserModuleServiceImpl implements UserModuleService {
	@Autowired
	private UserModuleMapper mapper;
	@Override
	public List<UserModule> selectUserModuleList(UserModule param)  throws Exception{
		List<UserModule> list = mapper.selectUserModuleList(param);
		return list;
	}

	@Override
	public UserModule selectUserModuleByName(UserModule param) throws Exception {
		return mapper.selectUserModuleByName(param);
	}

	@Override
	public int updateUserModuleByName(UserModule param){
		return mapper.updateUserModuleByName(param);
	}


}
